#!/usr/bin/env python
# -*- coding:utf-8 -*-
#encoding=utf-8

####
from multiprocessing  import Process,freeze_support   
  
#def forevery() :  
#    while True:  
#        pass  
  
import inspect
 
class A:
    @staticmethod
    def get_mo():
        mod = inspect.getmodule(A)
        return getattr(mod, "AA")()

class AA(A):
    def __init__(self):
        print 'AA.__init__'
  
#forevery()  

if __name__ == '__main__':
    """
    freeze_support()
    p1 = Process(target=forevery)  
    p1.start() 
    forevery()
    """
    a = A()
    a.get_mo()